package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 学生段位降级规则对象 sys_student_rank_rule
 *
 * @author 杨佳霖
 * @date 2025-08-29
 */
public class AsysStudentRankRule extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 规则ID */
    private Long id;

    /** 段位名称 */
    @Excel(name = "段位名称")
    private String rankLevel;

    /** 子段位 */
    @Excel(name = "子段位")
    private String rankSubLevel;

    /** 该段位最小经验值 */
    @Excel(name = "该段位最小经验值")
    private Long minExp;

    /** 该段位最大经验值 */
    @Excel(name = "该段位最大经验值")
    private Long maxExp;

    /** 状态（1-启用） */
    @Excel(name = "状态", readConverterExp = "1=-启用")
    private Long status;

    public void setId(Long id)
    {
        this.id = id;
    }

    public Long getId()
    {
        return id;
    }

    public void setRankLevel(String rankLevel)
    {
        this.rankLevel = rankLevel;
    }

    public String getRankLevel()
    {
        return rankLevel;
    }

    public void setRankSubLevel(String rankSubLevel)
    {
        this.rankSubLevel = rankSubLevel;
    }

    public String getRankSubLevel()
    {
        return rankSubLevel;
    }

    public void setMinExp(Long minExp)
    {
        this.minExp = minExp;
    }

    public Long getMinExp()
    {
        return minExp;
    }

    public void setMaxExp(Long maxExp)
    {
        this.maxExp = maxExp;
    }

    public Long getMaxExp()
    {
        return maxExp;
    }

    public void setStatus(Long status)
    {
        this.status = status;
    }

    public Long getStatus()
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
                .append("id", getId())
                .append("rankLevel", getRankLevel())
                .append("rankSubLevel", getRankSubLevel())
                .append("minExp", getMinExp())
                .append("maxExp", getMaxExp())
                .append("status", getStatus())
                .append("createTime", getCreateTime())
                .toString();
    }
}
